//
//  NSString+Extension.h
//  Futures
//
//  Created by Cheng on 2017/6/22.
//  Copyright © 2017年 Cheng. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef enum : int {
    ConfirmPasswordResult_PureNum,
    ConfirmPasswordResult_PureChar,
    ConfirmPasswordResult_CharNumComplex,
    ConfirmPasswordResult_SpecialSymbol
} PassWordComplex;

@interface NSString (Extension)

+ (NSString *)LocalizedStringByInt:(int)key;
- (NSString *)fileAppend:(NSString *)append;
+ (NSString *)toNSString:(const char *) c;
+ (NSString *)stringFromDate:(NSDate *)date;
// 数值变化
+ (NSString*)changePrice:(int)price;
+ (NSString*)changePriceByFloat:(float)price;
//+ (char *)toCString:(NSString*)s;
+ (NSString *)int2string:(int)intValue;
// 把完整的时间转换成只显示小时：分：秒
+ (NSString *)stringFormatFromFullDate:(NSString *)fullDate;
- (char*)toCString:(NSString*)s;
// 判断字符串是否为纯数字
- (BOOL)isPureNumandCharacters:(NSString *)string;
+ (NSString *)stringFromDateDay:(NSDate *)date;
// 判断密码是否为字母数字组合
- (int)confirmPasswordResult;
// 获取当前时间
+ (NSString *)getCurrentFullTime;


//+ (NSMutableAttributedString *)stringWithaString:(NSString *)astring;
//
//+ (NSMutableAttributedString *)stringWithaString:(NSString *)astring color:(UIColor *)color;
//
//+ (NSMutableAttributedString *)stringWithaString:(NSString *)astring smallFont:(float)small bigFont:(float)big;

+ (NSMutableAttributedString *)stringWithaString:(NSString *)astring bigFont:(float)big smallFont:(float)small color:(UIColor *)color;


@end
